﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="Hienthiloailinhkien.aspx.cs" Inherits="admin_Hienthiloailinhkien" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <table style="width:100%;">
        <tr>
            <td>
            <table>
            
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                <HeaderTemplate>
                <tr>
                            <th>Mã Loại Linh Kiện</th>
							<th>Tên Loại Linh Kiện</th>	
                
                </tr>
                
                
                </HeaderTemplate>
                <ItemTemplate>
                <tr>
                <td><asp:HyperLink ID="hplMaLoaiLK" runat="server" NavigateUrl='<%# "~/ThemLoaiLinhKien.aspx?loailk=" + DataBinder.Eval(Container.DataItem,"loailk")%>' Text='<%# DataBinder.Eval(Container.DataItem,"loailk")%>' /></td>
							<td><%#Eval("tenloailk")%></td>													
							<td><asp:ImageButton ID="imagebtxoa" runat="server" Width="20px" Height="20px" CommandArgument='dk' CommandName="Xoa" OnClientClick='return isconfirm()'
            ImageUrl="images/action_remove.png" /><a href="SuaLoaiLinhKien.aspx?loailk=<%#Eval("loailk")%>"><img src="images/action_check.png" alt="Check" /></a></td>
                
                
                </tr>
                
                </ItemTemplate>
                
                
                </asp:Repeater>
                
                </table>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:maytinhxachtayConnectionString %>" 
                    SelectCommand="SELECT [LoaiLK], [TenLoaiLK] FROM [LoaiLinhKien]">
                </asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Repeater ID="Repeater2" runat="server">
                </asp:Repeater>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        </table>
    </form>
</asp:Content>

